package com.atguigu.chaptar5

object $05_ImmutableSet {
  def main(args: Array[String]): Unit = {
    //1.创建
    val set = Set[Int](1, 2, 3, 4, 5)
    //2.添加
    val set1 = set.+(6)
    val set2 = set.++(List(4, 6, 7, 8))
    //3.删除
    val set3 = set.-(3)
    val set4 = set.--(List(3, 4, 5))
    //4.获取元素无
    //5.修改元素无
  }

}
